#include "stm32f10x.h"                  // Device header
#include "OLED.h"
#include "LED.h"

//uint16_t

int main(void)
{
	OLED_Init();
	// 开启BKP和PWR的时钟(APB1访问它们的时钟)
	RCC_APB1PeriphClockCmd(RCC_APB1Periph_BKP, ENABLE);
	RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR, ENABLE);
	// 备份访问使能
	PWR_BackupAccessCmd(ENABLE);
	// 写入备份寄存器
//	BKP_WriteBackupRegister(BKP_DR1, 0x1234);
	// 读取备份寄存器
	OLED_ShowHexNum(2, 1, BKP_ReadBackupRegister(BKP_DR1), 4);
	OLED_ShowString(1,1,"ReadBKP_Value:");
	while(1)
	{
		
	}
}
